package com.x.xiaoshuo.widget.readview.aim;


public class NoAim extends OverlappedAim {
    public NoAim(ReadView readView) {
        super(readView);
    }

    @Override
    public void startAnimation() {
        startAnimation(700);
    }

    public void startAnimation(int duration) {
        int dx;
        if (readView.actiondownX > readView.mScreenWidth / 2) {
            dx = (int) -(readView.mScreenWidth + readView.touch_down);
            readView.mScroller.startScroll((int) (readView.mScreenWidth + readView.touch_down), (int) readView.mTouch.y, dx, 0, duration);
        } else {
            dx = (int) (readView.mScreenWidth - readView.touch_down);
            readView.mScroller.startScroll((int) readView.touch_down, (int) readView.mTouch.y, dx, 0, duration);
        }
    }
}
